from services.analysis.area_analysis import AreaAnalysis
import json

def analysis():

    # 读取地址数据,json文件来源于crawler.py
    with open('地址数据.json', 'r', encoding='utf-8') as f:
        level_info = json.load(f)

    analyzer = AreaAnalysis(level_info)
    # 生成报告
    report = analyzer.generate_report()
    print("分析完成，请查看生成的图表和报告文件") 
